# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=hare-message
pkgver=0_git20231204
_commit=06013521c6c365bc4f6b02d172e236ef1a4acb28
pkgrel=0
pkgdesc="Internet message format implementation for Hare"
url="https://git.sr.ht/~sircmpwn/hare-message"
arch="noarch !armhf !armv7 !ppc64le !s390x !x86 !loongarch64" # blocked by hare
license="MIT AND MPL-2.0"
checkdepends="hare"
source="$pkgname-$_commit.tar.gz::https://git.sr.ht/~sircmpwn/hare-message/archive/$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"

check() {
	hare test
}

package() {
	install -vdm755 "$pkgdir/usr/src/hare/third-party"
	cp -Rdv "message" "$pkgdir/usr/src/hare/third-party"
}

sha512sums="
b646985ddb94ee1ab077b14da303309b2faea135464a3c7c3f9604cb68ac8cc73c4964bc845fab876dccbd3c9a29dcc343ba532264dd2894c2d92b71965b9815  hare-message-06013521c6c365bc4f6b02d172e236ef1a4acb28.tar.gz
"
